package com.javaee.xiangyang.mapper;

import com.javaee.xiangyang.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface AdminMapper {

    /**
     * 登录管理员
     */
//    @Select("select * from admin where adminAccount = #{adminAccount}")
    Admin findByAdminAccount(Admin admin);

    /**
     * 修改管理员密码
     */
//    @Update("update admin set adminPassword = #{adminPassword} where adminAccount = #{adminAccount}")
    void updateByAdminAccount(Admin admin);
}
